import '../../data/models/user_info_model.dart';
import '../../data/models/setting_item_model.dart';

/// 个人中心状态管理 - Profile State Management
/// 
/// 管理个人中心页面的所有状态变量
/// Manages all state variables for profile page
class ProfileState {
  /// 是否正在加载 - Whether loading
  bool isLoading;
  
  /// 错误信息 - Error message
  String? errorMessage;
  
  /// 用户信息 - User information
  UserInfo? userInfo;
  
  /// 设置选项列表 - Settings options list
  List<SettingItem> settingItems;
  
  /// 是否已登录 - Whether logged in
  bool isLoggedIn;
  
  /// 是否正在退出登录 - Whether logging out
  bool isLoggingOut;

  /// 用户手机号 - User phone number
  String? userPhone;
  
  /// 用户邮箱 - User email
  String? userEmail;
  
  /// 用户ID - User ID
  String? userId;

  ProfileState({
    this.isLoading = false,
    this.errorMessage,
    this.userInfo,
    this.settingItems = const [],
    this.isLoggedIn = false,
    this.isLoggingOut = false,
    this.userPhone,
    this.userEmail,
    this.userId,
  });

 
}